package com.hthy.futures.ui.activity;

import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.LinearLayout;

import com.hthy.futures.R;
import com.hthy.futures.base.BaseActivity;
import com.hthy.futures.ui.fragment.SeachFragment;
import com.hthy.futures.utils.TDevice;
import com.hthy.futures.view.TitleView;

import butterknife.Bind;

/**
  *
  * Author:  Mr.bingley
  * Version:
  * Date:  2017/6/22
  */

public class Seach2Activity extends BaseActivity {
   @Bind(R.id.titleview)
   TitleView mTitleview;
   @Bind(R.id.fl_container)
   FrameLayout mFrameLayout;

   @Bind(R.id.lin_main)
   LinearLayout main;

   @Override
   protected int getContentView() {
       return R.layout.nav_activity_slide_cotainer;
   }

   @Override
   protected void initWidget() {
       super.initWidget();
       mTitleview.setBackBtn();
       mTitleview.setImgLeft( new View.OnClickListener() {
           @Override
           public void onClick(View v) {
               TDevice.hideSoftKeyboard(mFrameLayout);
               finish();
           }
       });
       FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
       mTitleview.setTitle("查询");
       SeachFragment updateFrg = new SeachFragment();
      fragmentTransaction.add(R.id.fl_container, updateFrg);
       fragmentTransaction.commit();

       //  SoftHideKeyBoardUtil.assistActivity(this);

   }
}
